var path = require('path');
var webpack = require('webpack');
var commonsPlugin = new webpack.optimize.CommonsChunkPlugin('common.js');
module.exports = {

     //页面入口文件配置
    entry: {
        index: './src/index.js'
    },
     //入口文件输出配置
    output: {
        path: path.resolve(__dirname,'dist'),
        filename: "bundle.js"
    },
    plugins: [
        commonsPlugin
    ]  

};
